import request from '@/utils/request.js'

// 图库管理-修改图片名称
export const updateImage = (id, data) => {
  return request({
    url: `/image/${id}`,
    method: 'post',
    data
  })
}

// 图库管理-删除图片
export const deleteImage = ids => {
  return request({
    url: '/image/delete_all',
    method: 'post',
    data: { ids }
  })
}

// 图库管理-图片上传
export const uploadImageAction = import.meta.env.VITE_APP_BASE_API + "/image/upload"